﻿using System.Windows;
using Infov1.Models;
using Infov1.ViewModels;

namespace Infov1.Views
{
    public partial class CustomerEditDialog : Window
    {
        public CustomerEditDialog()
        {
            InitializeComponent();
        }

        public CustomerInfoModel Customer
        {
            get
            {
                if (DataContext is CustomerEditViewModel viewModel)
                {
                    return viewModel.Customer;
                }
                return null;
            }
        }
    }
}